# 1 "../Codes/MCU_Mold/MCU_F_C_Convert.c"
# 1 "E:\\APT_Landscape_mode\\APT32F1023_New\\Source//"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "../Codes/MCU_Mold/MCU_F_C_Convert.c"


# 1 "../Codes/MCU_Mold/Mcu_F_C_Convert.h" 1
# 1 "../Codes/Y36_LCD_horizontal/typed.h" 1





typedef signed char int8_t;
typedef short int16_t;
typedef int int32_t;
typedef long long int64_t;

typedef unsigned short uint16_t;

typedef unsigned long long uint64_t;
# 1 "include/apt32f102_ck801.h" 1
# 85 "include/apt32f102_ck801.h"
typedef enum IRQn
{

        ISR_Restart = -32,
        ISR_Misaligned_Access = -31,
        ISR_Access_Error = -30,
        ISR_Divided_By_Zero = -29,
        ISR_Illegal = -28,
        ISR_Privlege_Violation = -27,
        ISR_Trace_Exection = -26,
        ISR_Breakpoint_Exception = -25,
        ISR_Unrecoverable_Error = -24,
        ISR_Idly4_Error = -23,
        ISR_Auto_INT = -22,
        ISR_Auto_FINT = -21,
        ISR_Reserved_HAI = -20,
        ISR_Reserved_FP = -19,
        ISR_TLB_Ins_Empty = -18,
        ISR_TLB_Data_Empty = -17,

        INTC_CORETIM_IRQn = 0,
        INTC_TIME1_IRQn = 1,
        INTC_UART0_IRQn = 2,
        INTC_GPIOA2_IRQn = 8,
} IRQn_Type;


void INTC_Init(void);
void force_interrupt(IRQn_Type IRQn);

void CK_CPU_EnAllNormalIrq(void);
void CK_CPU_DisAllNormalIrq(void);
# 15 "../Codes/Y36_LCD_horizontal/typed.h" 2
# 2 "../Codes/MCU_Mold/Mcu_F_C_Convert.h" 2




typedef enum
{
    Unit_F = 1,
    Unit_C = 2,
    Unit_F_C = 3,
}Grill_Unit_E;

int32_t F_Convert_C(int32_t);
# 4 "../Codes/MCU_Mold/MCU_F_C_Convert.c" 2


int32_t F_Convert_C(int32_t F)
{
    int32_t x;

    if(F == 200) F = 199;

    x = (F - 32);
    x *= 100;
    x /= 18;

    if((x % 10) >= 5)
    {
        x /= 10;

    }
    else x /= 10;

    return x;
}
